home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
knowhow4
/
showtext.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-10
|
699b
|
30 lines
#ifndef __SHOW_TEXT_H_
#define __SHOW_TEXT_H_
#include "ljfonts.h"
#include <alloc.h>
#include <string.h>
class ShowText
{
protected:
char* buffer; // work buffer
ljfont* fnt;
public:
ShowText()
{
buffer = NULL; fnt = NULL;
}
~ShowText() { delete buffer; buffer = NULL; delete fnt; fnt = NULL; }
void loadFont(char* fontName = "hv08a.sfp");
void unLoadFont()
{ delete buffer; buffer = NULL; delete fnt; fnt = NULL; }
void show(loc pos, // left-top of viewport
char* string,
loc scale = loc(1, 1), int interval = 15,
int direction = HORIZ_DIR, int mode = COPY_PUT);
};
#endif __SHOW_TEXT_H_